package concurrency.basicthreading.demo;

public class Demo13ResponsiveUI extends Thread {
	private static volatile double d = 1;
	public Demo13ResponsiveUI() {
		setDaemon(true);
		start();
	}
	@Override
	public void run() {
		while(true) {
			d = d +(Math.PI + Math.E) / d;
		}
	}
	
	public static void main(String[] args) throws Exception {
			//new Demo13UnresponsiveUI();
			//System.out.println("UnresponsiveUI");	
			new Demo13ResponsiveUI();
			System.in.read();
			System.out.println(d);
	}
}
